package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel(value = "压力容器")
@TableName(value = "g_equipment_pressure_vessel")
public class PressureVessel extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "区域Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "使用单位")
    private String usingUnit;
    @ApiModelProperty(value = "安装使用地点")
    private String installationLocation;
    @ApiModelProperty(value = "容器名称")
    private String containerName;
    @ApiModelProperty(value = "设计单位")
    private String designUnit;
    @ApiModelProperty(value = "制造单位")
    private String manufacturingUnit;
    @ApiModelProperty(value = "安装单位")
    private String installationUnit;
    @ApiModelProperty(value = "出厂编号")
    private String factoryNumber;
    @ApiModelProperty(value = "制造年月")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate manufacturingMonth;
    @ApiModelProperty(value = "投用年月")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate putIntoUseTime;
    @ApiModelProperty(value = "内径mm")
    private Integer innerDiameter;
    @ApiModelProperty(value = "厚度mm")
    private Integer thickness;
    @ApiModelProperty(value = "容积M3")
    private Float volume;
    @ApiModelProperty(value = "温度")
    private String temperature;
    @ApiModelProperty(value = "压力Mpa")
    private Float pressure;
    @ApiModelProperty(value = "介质")
    private String medium;
    @ApiModelProperty(value = "主体材质")
    private String mainMaterial;
    @ApiModelProperty(value = "容器类别")
    private String containerCategory;
    @ApiModelProperty(value = "设备代码")
    private String deviceCode;
    @ApiModelProperty(value = "使用证编号")
    private String useCertificateNumber;
    @ApiModelProperty(value = "安全等级")
    private String safetyLevel;
    @ApiModelProperty(value = "检验报告编号")
    private String inspectionReportNumber;
    @ApiModelProperty(value = "检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate inspectionDate;
    @ApiModelProperty(value = "下次检验时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate nextInspectionTime;
    @ApiModelProperty(value = "状态 0:运行，1:停机，字典类型：equipment_status")
    private String status;
    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;

}
